﻿/*
 * File: TwoDeeGamePlayBaseScene3_Events.cs
 * Author: Gourav Das
 * Purpose: Events for 2D gameplay
 * Created: May30 2011
 */

using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.Threading;
using System.IO;
using _22yards._2D;
using _22yards.Scenes.Helpers;
using _22yards.Core;
using _22yards;
using _22yards.EnumDeclarations;
using _22yards.ThreeD;
using _22yards.Helpers;

namespace _22yards.Scenes
{
    /// <summary>
    /// This is a scene that implements the 2D Gameplay screen
    /// </summary>
    partial class GamePlayBaseScene : Scene
    {

        /// <summary>
        /// Handles the MouseLeftDoubleClick event of the ActiveBowler PhotoFrame control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void PhotoFrameActiveBowler_MouseLeftDoubleClick(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// Handles the MouseLeftDoubleClick event of the ActiveBatsMan PhotoFrame control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void PhotoFrameActiveBatsMan_MouseLeftDoubleClick(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }


        /// <summary>
        /// Handles the DblClickSelected event of the photoFramesBatsman control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void photoFramesBatsman_DblClickSelected(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// Handles the DblClickSelected event of the photoFramesBowler control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void photoFramesBowler_DblClickSelected(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// Handles the Selected event of the photoframe2 and 3 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void photoframeBowler_LeftKeySelected(object sender, EventArgs e)
        {
            ((PhotoFrameModel)sender).Oscillate = false;
            rightSideBarModel.transitionOut = true;
            rightSideBarModel.Oscillate = false;
            PhotoFrameAnimationTimeBomb = true;
        }


        /// <summary>
        /// Handles the Selected event of the photoframe0 and 1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void photoframeBatsman_LeftKeySelected(object sender, EventArgs e)
        {
            ((PhotoFrameModel)sender).Oscillate = false;
            rightSideBarModel.transitionOut = true;
            rightSideBarModel.Oscillate = false;
            PhotoFrameAnimationTimeBomb = true;
        } 

    }
}